import request from "@/utils/request"

export function queryPageMajordomo(data) {
  return request({
    url: "/CHousekeeper/queryPage",
    method: "POST",
    data: data
  })
}

export function queryListMajordomo(data) {
  return request({
    url: "/CHousekeeper/queryList",
    method: "GET",
    params: data
  })
}

export function queryOneMajordomo(data) {
  return request({
    url: "/CHousekeeper/queryOne",
    method: "GET",
    params: data
  })
}


export function insertMajordomo(data) {
  return request({
    url: "/CHousekeeper/insert",
    method: "POST",
    data: data
  })
}

export function updateMajordomo(data) {
  return request({
    url: "/CHousekeeper/update",
    method: "POST",
    data: data
  })
}

export function deleteMajordomo(data) {
  return request({
    url: "/CHousekeeper/delete",
    method: "POST",
    data: data
  })
}

export function queryPageHousekeeper(data) {
  return request({
    url: "/CHousekeeperCommission/queryPage",
    method: "POST",
    data: data
  })
}

export function queryOrderOne(data) {
  return request({
    url: "/COrder/queryOne",
    method: "GET",
    params: data
  })
}
export function queryOrderList(data) {
  return request({
    url: "/COrderItem/queryList",
    method: "GET",
    params: data
  })
}

export function queryPageCustomer(data) {
  return request({
    url: "/CCustomer/queryPage",
    method: "POST",
    data: data
  })
}
